/*
Copyright (C) 2009  Raymond Jeon
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/


#ifndef __GL_LIB_STRING_H__
#define __GL_LIB_STRING_H__



#include "gl_lib_define.h"



char *GlStriStr(char *s1, char *s2);
void GlStrSizeCpy(char *t, char *s, int len);
void GlStrWordCpy(char *t, char *s, int len);
void GlStrLineCpy(char *t, char *s, int len);
BOOL GlStrWildCardCmp(char *t, char *s);
BOOL GlStrTildCmp(char *t, char *s);
BOOL GlStrWildCardTildCmp(char *t, char *s);
BOOL GlStrIsIpAddress(char *szIpAddress);
int	GlAtoiRange(char *s, int min, int max);
char *GlGetCsvTok(char **line);
BOOL GlStrCsvKeyCmp(char *s, char *p);
BOOL GlStrMimeKeyCmp(char *s, char *p);
BOOL StrMd5Cmp(char *s, char *md5);


BOOL GlCheckAlphaNumUbar(char *s);
BOOL GlCheckAlphaNumUbarDash(char *s);
void GlStrTruncEndSpace(char *s);
char *GlStrDupReplace(char **szName, char *szVal);
char *GlStrDupReplaceSleep(char **szName, char *szVal);



#endif // __GL_LIB_STRING_H__


